package com.gzsxy.esjy.feign.Order;


import com.gzsxy.esjy.service.base.dto.response.DefaultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


//fallbackFactory是降级熔断工厂，异常统一进入对应的类
@FeignClient(value = "service-order", fallbackFactory = OrderFallback.class, fallback = OrderClientHystrix.class)
public interface OrderFeignService {

    /**
     * @param day 时间
     * @return
     * @description:  订单统计
     */
    @GetMapping(value = "/admin/order/getNum")
    public DefaultResponse getOrderStatistical(@RequestParam String day);
}
